package com.songlanyun.modules.singlegoods.controller.admin;

import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.common.utils.R;
import com.songlanyun.modules.singlegoods.service.UnderStockRecordService;
import com.songlanyun.modules.user.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

//import org.apache.shiro.authz.annotation.RequiresPermissions;



/**
 * 库存不足记录表
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2021-03-18 15:09:05
 */
@RestController
@RequestMapping("admin/singlegoods/understockrecord")
public class UnderStockRecordAdminController extends AbstractController {
    @Autowired
    private UnderStockRecordService underStockRecordService;

    /**
     * 列表
     */
    @GetMapping("/list")
    //@RequiresPermissions("singlegoods:understockrecord:list")
    public R list(@RequestParam Map<String, Object> params){
        setShopId(params);
        PageUtils page = underStockRecordService.queryPage(params);

        return R.ok().put("page", page);
    }

}
